package org.graduation.project.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.graduation.model.common.project.TaskAndUserTable;
import org.graduation.model.common.user.User;
import org.graduation.project.mapper.TaskAndUserMapper;
import org.graduation.project.service.TaskAndUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskAndUserServiceImpl extends ServiceImpl<TaskAndUserMapper, TaskAndUserTable> implements TaskAndUserService {

    @Autowired
    private TaskAndUserMapper taskAndUserMapper;

    @Override
    public List<User> getUsersByTaskId(Long taskId) {
        return taskAndUserMapper.getUsersByTaskId(taskId);
    }
}
